<h:html xmlns:h="http://www.w3.org/1999/xhtml"

        xmlns="http://www.w3.org/2002/xforms"

	  xmlns:ev="http://www.w3.org/2001/xml-events"

	  xmlns:xsd="http://www.w3.org/2001/XMLSchema">

	<h:head>

		<h:title>safe mothers</h:title>

		<model>

		<itext>


			<translation lang="English">
				
					<text id="yes">
					<value>yes</value>
				</text>

				<text id="no">
					<value>no</value>
				</text>
				
						
				<text id="family_name">
					<value>Client family name</value>
				</text>
				<text id="given_name">
					<value>Client name</value>
				</text>
				<text id="middle_name">
					<value>Client middle name</value>
				</text>
				
				<text id="positive">

					<value>HIV Positive</value>

				</text>
				
				<text id="negative">

					<value>HIV Negative</value>

				</text>
				
				<text id="household">
					<value>What household are you in</value>
				</text>
				
				<text id="age">
					<value>How old are you</value>
				</text>
				
				<text id="disability">
					<value>Do you have physical disabilities</value>
				</text>
				
				<text id="disabilities">
					<value>What physical disabilities does this woman have</value>
				</text>

				<text id="given_birth">
					<value>Have you given birth before?</value>
				</text>
				
				<text id="numb_birth">
					<value>How many times have you given birth already?</value>
				</text>
				
				<text id="complications">
					<value>Did you have any complications in previous pregnancies?</value>
				</text>
				
				<text id="nchildren">
					<value>How many children do you take care of now?</value>
				</text>
				<text id="hiv_test">
					<value>Have you tested for HIV?</value>
				</text>
				
				<text id="hiv_result">
					<value>What were the results from your test?</value>
				</text>
				
				<text id="hi_risk">

					<value form="long">Explain to the woman that she is at high risk for problems during birth that require a clinician.</value>

					<value form="short">explainations.</value>

				</text>
				
				<text id="more_details">
					<value>Any other more details that you observed from the woman?</value>
				</text>
				
				<text id="narative2">

					<value form="long">Having physical disabilities means that it is dificult to give birth</value>

					<value form="short">Physical disabilities.</value>

				</text>
				
				<text id="narative3">

					<value form="long">Woman who have had a complication during a past pregnancy or birth, often have a complications in future pregnancies</value>

					<value form="short">Complication during a past pregnancy.</value>

				</text>
				
				<text id="narative4">

					<value form="long">Woman who have had many pregnancies often have complications.</value>

					<value form="short">Woman who have had many pregnancies.</value>

				</text>
				
				<text id="narative5">

					<value form="long">Woman older than 35 are at risk for complicated pregnancy.</value>

					<value form="short">Woman older than 35.</value>

				</text>



				<text id="narative6">

					<value form="long">Woman who are HIV positive usually have complicated pregnancies and must get treatment to prevent their children from getting HIV.</value>

					<value form="short">Woman who are HIV positive have complications.</value>

				</text>

			</translation>

			<translation lang="Swahili">
			<text id="yes">
					<value>Ndiyo</value>
				</text>

				<text id="no">
					<value>Hapana</value>
				</text>

				<text id="hiv">
					<value>VVU</value>
				</text>
				
				<text id="family_name">
					<value>Jina la Ukoo</value>
				</text>
				<text id="given_name">
					<value>Jina la kwanza</value>
				</text>
				<text id="middle_name">
					<value>Jina la Baba</value>
				</text>
				
				<text id="positive">

					<value>Ana VVU</value>

				</text>
				
				<text id="negative">

					<value>Hana VVU</value>

				</text>
				
				<text id="household">
					<value>Unatembelea nyumba gani</value>
				</text>
				
				<text id="age">
					<value>Una miaka mingapi</value>
				</text>
				
				<text id="more_than35">
					<value>Je umri aliyotaja ni miaka 35 au zaidi? </value>
				</text>
				
				<text id="disability">
					<value>Je anaulemavu wowote wa mwili</value>
				</text>
				
				<text id="disabilities">
					<value>Ana ulemavu gani?</value>
				</text>
			
				<text id="given_birth">
					<value>Ameshawahi kubeba mimba maishani mwake?</value>
				</text>
				
				<text id="numb_birth">
					<value>Umeshabeba mimba mara ngapi?</value>
				</text>
				
				<text id="more_than_four">
					<value>Ameshabeba mimba zaidi ya mara 4?</value>
				</text>
				
				<text id="complications">
					<value>Ameshawahi kupata matatizo yeyote wakati wa ujauzito siku zilizopita?</value>
				</text>
				
				<text id="nchildren">
					<value>Una watoto wangapi unaowatunza?</value>
				</text>
				<text id="hiv_test">
					<value>Umeshawahi kupima Virus vya Ukimwi?</value>
				</text>
				
				<text id="hiv_result">
					<value>Majibu ya vipimo hivyo yalikuwaje?</value>
				</text>
				
				<text id="hi_risk">

					<value form="long">Toa maelezo kwa mama huyo kuwa anadalili za hatari hivyo anahitaji kuwa karibu na wahudumu wa afya wakati wa kujifungua.</value>

					<value form="short">Maelezo.</value>

				</text>
				
				<text id="more_details">
					<value>Kuna mambo mengine uliyoyaona kwa mama huyu?</value>
				</text>
				
				<text id="narative2">

					<value form="long">Kuwa na ulemavu wa mwili kunahitaji uangalizi wa karibu wakati wa kujifungua</value>

					<value form="short">Maelezo ya ulemavu.</value>

				</text>
				
				<text id="narative3">

					<value form="long">Mwanamke aliyewahi kupata matatizo wakati wa kujifungua, mara nyingi anaweza kupata matatizo wakati wa kujifungua wakati mwingine</value>

					<value form="short">Matatizo wakati wa kujifungua.</value>

				</text>
				
				<text id="narative4">

					<value form="long">Mwanamke aliyebeba mimba mara nyingi anaweza kupata matatizo wakati wa ujauzito wake.</value>

					<value form="short">Mwanamke aliyebeba mimba mara nyingi.</value>

				</text>
				
				<text id="narative5">

					<value form="long">Wanawake walio na umri zaidi ya miaka 35 wako kwenye hatari ya kupata matatizo wakati wa kubeba mimba.</value>

					<value form="short">Wanawake wenye umri zaidi ya 35.</value>

				</text>



				<text id="narative6">

					<value form="long">Wanawake wenye virus vya UKIMWI wanahitaji uangalizi wa karibu wakati wa kujifungua ilikuepuka maambukizo ya HIV kwa mtoto.</value>

					<value form="short">Matatizo ya Mwanamke mwenye VVU wakati wa uja uzito.</value>

				</text>

			</translation>

		</itext>

		<instance>
				<sampledata xmlns="">
            <given_name />
            <middle_name />
            <family_name />
          <household />
          <age />
		  <more_than35 />
              <disability />
			  <disabilities />
              <date_of_birth />
			  <given_birth />
			  <numb_birth />
			  <more_than_four />
			  <complications />
			  <nchildren />
			  <hiv_test />
			  <hiv_result />
			  <more_details />
              <hi_risk />
			  <narative1 />
			  <narative2 />
			  <narative3 />
			  <narative4 />
			  <narative5 />
			   <narative6 />
			   </sampledata>
			</instance>

			<bind id="given_name" nodeset="/sampledata/given_name"  type="xsd:string" required="true()" />
			<bind id="middle_name" nodeset="/sampledata/middle_name"  type="xsd:string" required="true()" />
			<bind id="family_name" nodeset="/sampledata/family_name"  type="xsd:string" required="true()" />
			<bind id="household" nodeset="/sampledata/household"  type="xsd:string" required="true()" />
			<bind id="age" nodeset="/sampledata/age"  type="xsd:int" required="true()" />
			<bind id="disability" nodeset="/sampledata/disability"  type="xsd:string" required="true()" />
			<bind id="given_birth" nodeset="/sampledata/given_birth"  type="xsd:string" required="true()" />
			<bind id="numb_birth" nodeset="/sampledata/numb_birth"  type="xsd:int" relevant="/sampledata/given_birth='yes'" />
			
			<bind id="complications" nodeset="/sampledata/complications"  type="xsd:string" relevant="/sampledata/given_birth='yes'" />
			<bind id="nchildren" nodeset="/sampledata/nchildren"  type="xsd:int" required="true()" />
			<bind id="hiv_test" nodeset="/sampledata/hiv_test" type="xsd:string" required="true()" />
			<bind id="hiv_result" nodeset="/sampledata/hiv_result" type="xsd:string" relevant="/sampledata/hiv_test='yes'" />
			<bind id="hi_risk" nodeset="/sampledata/hi_risk" type="xsd:string" relevant="/sampledata/disability='yes' or /sampledata/numb_birth &gt;= 4 or /sampledata/age &gt;= 35 or /sampledata/complications='yes' or /sampledata/hiv_result='positive'" />
			
			<bind id="narative2" nodeset="/sampledata/narative2" type="xsd:string" relevant="/sampledata/disability='yes'" />
			<bind id="narative3" nodeset="/sampledata/narative3" type="xsd:string" relevant="/sampledata/complications='yes'" />
			<bind id="narative4" nodeset="/sampledata/narative4" type="xsd:string" relevant="/sampledata/more_than_four='yes'" />
			<bind id="narative5" nodeset="/sampledata/narative5" type="xsd:string" relevant="/sampledata/age &gt;=35" /> 
			<bind id="narative6" nodeset="/sampledata/narative6" type="xsd:string" relevant="/sampledata/hiv_result='positive'" />
	
</model>

	</h:head>

	<h:body>
	
	<input bind="given_name"><label ref="jr:itext('given_name')"></label></input>
	<input bind="middle_name"><label ref="jr:itext('middle_name')"></label></input>
	<input bind="family_name"><label ref="jr:itext('family_name')"></label></input>
	<input bind="household"><label ref="jr:itext('household')"></label></input>
	<input bind="age"><label ref="jr:itext('age')"></label></input>
	
	
			<select1 ref="/sampledata/disability">

           <label  ref="jr:itext('disability')"></label>

            <item><label ref="jr:itext('yes')"></label><value>yes</value></item>

            <item><label ref="jr:itext('no')"></label><value>no</value></item>

			</select1>
	
	<select1 ref="/sampledata/given_birth">

           <label  ref="jr:itext('given_birth')"></label>

            <item><label ref="jr:itext('yes')"></label><value>yes</value></item>

            <item><label ref="jr:itext('no')"></label><value>no</value></item>

			</select1>
			
		<input bind="numb_birth"><label ref="jr:itext('numb_birth')"></label></input>			
		
			<select1 ref="/sampledata/complications">

           <label  ref="jr:itext('complications')"></label>

            <item><label ref="jr:itext('yes')"></label><value>yes</value></item>

            <item><label ref="jr:itext('no')"></label><value>no</value></item>

			</select1>
			
			<input bind="nchildren"><label ref="jr:itext('nchildren')"></label></input>
			
			<select1 ref="/sampledata/hiv_test">

           <label  ref="jr:itext('hiv_test')"></label>

            <item><label ref="jr:itext('yes')"></label><value>yes</value></item>

            <item><label ref="jr:itext('no')"></label><value>no</value></item>

			</select1>
			
			<select1 ref="/sampledata/hiv_result">

		<label ref="jr:itext('hiv_result')"></label>

		<item><label ref="jr:itext('positive')"></label><value>HIV Positive</value></item>

		<item><label ref="jr:itext('negative')"></label><value>HIV Negative</value></item>
		</select1>
		
		<trigger ref="/sampledata/hi_risk">
			<label ref="jr:itext('hi_risk')"></label>
		</trigger>
		
		<trigger ref="/sampledata/narative2">
			<label ref="jr:itext('narative2')"></label>
		</trigger>
			

		<trigger ref="/sampledata/narative4">
			<label ref="jr:itext('narative4')"></label>
		</trigger>
		
		<trigger ref="/sampledata/narative5">
			<label ref="jr:itext('narative5')"></label>
		</trigger>
		
		<trigger ref="/sampledata/narative6">
			<label ref="jr:itext('narative6')"></label>
		</trigger>

	</h:body>

</h:html>